preview:
  - Make `InMemoryDocumentStore.write_documents()` return the number of docs actually written
